<?php

define('APP_DIR', dirname(__FILE__));
$GLOBALS["InventionStatus"]	=	
	array('Disclosure', 'File Provisional', 'File Non-provisional', 'Publish', 'Preparing Application', 
	'Inventor Review','Filed','Examination','Allowance','Issue','Abandon');
$GLOBALS["InventionType"]	=	array('Provisional Patent', 'Non-Provisional Utility Patent', 'CIP', 'Design Patent');
$GLOBALS['ActionType']		=	array('Disclosure','Draft','Filed','Response','Payment','Office');
$GLOBALS['OfficeActionType']		=	array("Non-Final","Final",'Advisory Action', 'Appeal Brief','Response to Appeal');
$GLOBALS['officeResponseType']		=	array('Response', 'RCE', 'Correction', 'Notice of Appeal', 'Appeal Brief', 'Reply Brief');

define('NO_LEGACY_FLEAPHP', true);
require('./FLEA/FLEA.php');
FLEA::setAppInf('urlMode', URL_PATHINFO);

define('APP_NAME','http://localhost/ipserver/');
//define('APP_NAME','http://ip.optix.net/');

define('SmtpServer','smtp.126.com');
define('Smtpserverport','25');
define('SmtpUser','rong0996');
define('SmtpPass','022841300');
define('SmtpUserMail','rong0996@126.com');
/**
 * try to load config file,go to error page if fail
 */
define('View_DIR',dirname(__FILE__).DS.'App'.DS.'View');

$configFilename = APP_DIR.DS."Config".DS."DSN.php";

FLEA::loadAppInf($configFilename);

FLEA::import(APP_DIR .DS.'App');
FLEA::runMVC();
